import java.util.Scanner;

public class Task11 {
    public static void main(String[] args) {
        Scanner sc= new Scanner(System.in);
        System.out.println("请输入会员积分：");
        int num= sc.nextInt();
        //创建对象
        Task11 t=new Task11();
        //调用对象
        t.discount(num);
    }

    /**
     * 计算会员购物时的折扣
     * @param num 输入数字
     */

    public void discount(int num){
        if (num<2000&&num>0){
            System.out.println("9折");
        }if (num>=2000&&num<4000){
            System.out.println("8折");
        }if (num>=4000&&num<8000){
            System.out.println("7折");
        }if (num>=8000){
            System.out.println("6折");
        }
    }
}
